package com.cdxy.model.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author: tangy
 * @Date: 2020/3/6 18:21
 */
@Data
@ApiModel
public class LoginBindEmailReq implements Serializable {

    private static final long serialVersionUID = -5128505161072003851L;

    @ApiModelProperty(value = "邮箱", required = true)
    @NotBlank(message = "邮箱不能为空")
    private String email;

    @ApiModelProperty(value = "手机", required = true)
    @NotBlank(message = "手机不能为空")
    private String phone;

    @ApiModelProperty(value = "短信验证码", required = true)
    @NotBlank(message = "短信验证码不能为空")
    private String phoneCode;
}
